

(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

window.fbAsyncInit = function(){  // this gets triggered when FB object gets initialized
	console.log("FB Object initiated");
	FB.XFBML.parse(); // now we can safely call parse method
	
	 FB.init({
		//appId      : '1797824963777048', //prod
		appId      : '1800044720221739', //dev
		status     : true,
		xfbml      : true,
		version    : 'v2.0'
	  });	
	
};